package io.adrainty.bolee.file.handler;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * <p>FileStorageProperties</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description FileStorageProperties
 * @since 2025/8/18 13:31:31
 */

@Data
@Component
@ConfigurationProperties(prefix = "itheima.framework.storage")
public class FileStorageProperties {

    /**
     * 限速开关
     */
    private boolean limitSpeed = Boolean.TRUE;

    /**
     * 上传限制速度
     */
    private int uploadLimitSpeed = 100 * 1024 * 1024 * 2;

    /**
     * 下载限制速度
     */
    private int downloadLimitSpeed = 100 * 1024 * 1024 * 2;

    private int tempFileReadTimeout = 60 * 60 * 1000;

}
